package model

import "gorm.io/gorm"

type Pet struct {
	gorm.Model
	Name    string `gorm:"type:varchar(50);not null;"`
	Gender  string `gorm:"type:varchar(30);not null;"`
	Info    string `gorm:"type:varchar(100);not null;"`
	ClassId int    `gorm:"type:int(11);not null;"`
	UserId  int    `gorm:"type:int(11);not null;"`
}
type Class struct {
	gorm.Model
	Name string `gorm:"type:varchar(30);not null;"`
}
type User struct {
	gorm.Model
	Name string `gorm:"type:varchar(30);not null;"`
}
type PetData struct {
	Pet
	ClassName string
	UserName  string
}
